package com.bkgy.controller.allprocessRcl1630.controller;

import com.bkgy.controller.allprocessRcl1630.dto.AllProcessTbYieldRcl1630Requst;
import com.bkgy.controller.allprocessRcl1630.service.AllProcessRcl1630Service;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@Tag(name = "重卷1630明细表")
@RestController
@RequestMapping("/allprocess")

public class TbYieldRcl1630Controller {

    @Autowired
    private AllProcessRcl1630Service allProcessRcl1630Service;

    @Operation(summary = "RCL1630明细表-分页", description = "RCL1630明细表")
    @PostMapping("/rcl1630detais")
    public ResultData rcl1630detais(@RequestBody @Valid AllProcessTbYieldRcl1630Requst request)
    {
        return allProcessRcl1630Service.rcl1630detais(request);
    }
}